package com.xbf.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("shop")
public class Shop {
    @TableId(type = IdType.AUTO)
    @JsonProperty("sId")
    private Integer sId;  //购物车id

    @JsonProperty("uId")
    private Integer uId;  //用户id

    @JsonProperty("gId")
    private Integer gId;  //商品id

    @JsonProperty("sNum")
    private Integer sNum; //购买数量

    @JsonProperty("sPrice")
    private double sPrice; //总价
}
